import 'dart:isolate';
import 'package:analyzer/file_system/physical_file_system.dart';
import 'package:analyzer_plugin/starter.dart';
import 'package:arch_clean_rule_plugins/log.dart';
import 'arch_rule_plugin.dart';

Future<void> start(Iterable<String> _, SendPort sendPort) async {
  final resourceProvider = PhysicalResourceProvider.INSTANCE;
  mirrorLog.info('start=======>');
  ServerPluginStarter(
    ArchRulePlugin(
      resourceProvider: resourceProvider,
    ),
  ).start(sendPort);
}
